<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table border="1">
		<tr>
			<td>id</td>
			<td>name</td>
			<td>sex</td>
			<td>age</td>
		</tr>

		<?php foreach ($userList as $user) { ?>
		<tr>
			<td><?php echo $user['sid'] ?></td>
			<td><?php echo $user['name'] ?></td>
			<td><?php echo $user['sex'] ?></td>
			<td><?php echo $user['age'] ?></td>
		</tr>
		<?php } ?>
	</table>
</body>
</html>